//
//  LLPImageData.h
//  LLP
//
//  Created by psy on 12-10-12.
//  Copyright (c) 2012年 Porcellio. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    LLPFilterType0 = 0,
    LLPFilterType1,
}LLPFilterType;

//存储一个gif动画的数据信息
@interface LLPImageData : NSObject{
    NSMutableArray*         _imgNamesArray;//文件名列表
    NSMutableArray*         _uiimagesArray;//对应的UIImage的列表
    LLPFilterType           _filterType;//过滤器方式
    NSString*               _imgName;//gif文件名字
}

@property (nonatomic,retain)NSMutableArray*     imgNamesArray;
@property (nonatomic,retain)NSMutableArray*     uiimagesArray;
@property (nonatomic,retain)NSString*           imgName;
@property (nonatomic,assign)LLPFilterType       filterType;

//方便存取
- (id)initWithDic:(NSDictionary*)tmpDic;
- (NSDictionary*)convertToDic;

- (void)saveImgArray;

//编辑的时候使用
- (id)initWithImgNamesArray:(NSArray*)tmpImgNamesArray
           andUIImagesArray:(NSArray*)tmpUIImagesArray
              andFilterType:(LLPFilterType)tmpType
                andFileName:(NSString*)tmpImgName;

- (void)removeImageByIndex:(int)tmpIndex;
- (void)insetImage:(NSString*)tmpImgName
       withUIImage:(UIImage*)tmpUIImage
           inIndex:(int)tmpIndex;
- (void)setFilterType:(LLPFilterType)tmpType;
@end
